Function.prototype.inherits = function(sc) {
  var t = function() {};
  t.prototype = sc.prototype;
  this.prototype = new t();
};
function class2db(){

}
class2db.prototype = {	config:{dbname:'db1'}, 
						data:{}, 
						save:function(o){},
						constructor: class2db
					};